package com.cargohu.aishouyu.member.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cargohu.aishouyu.member.entity.Member;
import com.cargohu.aishouyu.member.req.MemberRequest;
import com.cargohu.aishouyu.member.resp.MemberDetailVo;
import com.cargohu.aishouyu.member.resp.MemberResponse;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 会员表 Mapper 接口
 *
 * @author aaron.wang
 * @since 2023-11-27
 */
@Mapper
public interface MemberMapper extends BaseMapper<Member> {

    /**
     * 会员表详情
     *
     * @param memberId
     * @return
     */
    MemberDetailVo getMemberById(Long memberId);

    /**
     * 会员表分页列表
     *
     * @param memberRequest
     * @return
     */
    List<MemberResponse> getMemberList(MemberRequest memberRequest);

}
